using System;
using System.Collections.Generic;

namespace OA.Model
{

    /// <summary>
    /// 管理员
    /// </summary>
    public class Manager:Base
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public virtual string UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public virtual string Password { get; set; }

        /// <summary>
        /// 用户组ID
        /// </summary>
        public virtual string GroupID { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public virtual string RealName { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public virtual string Telephone { get; set; }

        /// <summary>
        /// 电子邮箱
        /// </summary>
        public virtual string Email { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public virtual Common.EnumType.ManagerType ManagerType { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public virtual bool IsLock { get; set; }

        /// <summary>
        /// 锁定失效时间
        /// </summary>
        public virtual DateTime? LockFailTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public virtual DateTime CreatTime { get; set; }


        /// <summary>
        /// 用户组
        /// </summary>
        public virtual ManagerGroup Group { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public virtual IList<ManagerRole> ManagerRoles { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        public virtual IList<Authority> Authoritys { get; set; }

        /// <summary>
        /// 登陆日志
        /// </summary>
        public virtual IList<Model.ManagerLoginLog> LoginLog { get; set; }

        /// <summary>
        /// 发送的消息
        /// </summary>
        public virtual IList<Chat> SendChats { get; set; }

        /// <summary>
        /// 接收的消息
        /// </summary>
        public virtual IList<Chat> ReceivedChats { get; set; }

    }
}